package com.soft.javase.day06.regex;

import java.util.Arrays;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/24
 */
public class SplitDemo {
    public static void main(String[] args) {
        String s1 = "192.168.105.27";
        String s2 = "18 22 40 65";
        System.out.println(Arrays.toString(s1.split("\\.")));
        System.out.println(Arrays.toString(s2.split(" +")));

    }

}
